package uy.com.csi.gestpro.model.proyecto;

import java.io.Serializable;
import java.util.List;

import javax.persistence.*;


/**
 * The persistent class for the gp_grpo_actvdad database table.
 * 
 */
@Entity
@Table(name="gp_grpo_actvdad", schema="proyecto")
@NamedQuery(name="GpGrpoActvdad.findAll", query="SELECT g FROM GpGrpoActvdad g")
public class GpGrpoActvdad implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name="id_prycto")
	private GpPrycto gpPrycto;

	private String nmbre;
	
	private Integer tpo;
	
	@OneToMany(mappedBy="gpGrpoActvdad")
	private List<GpDstrbcion> gpDstrbcions;
	
	public GpGrpoActvdad() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNmbre() {
		return this.nmbre;
	}

	public void setNmbre(String nmbre) {
		this.nmbre = nmbre;
	}

	public Integer getTpo() {
		return tpo;
	}

	public void setTpo(Integer tpo) {
		this.tpo = tpo;
	}

	public GpPrycto getGpPrycto() {
		return gpPrycto;
	}

	public void setGpPrycto(GpPrycto gpPrycto) {
		this.gpPrycto = gpPrycto;
	}

	public List<GpDstrbcion> getGpDstrbcions() {
		return gpDstrbcions;
	}

	public void setGpDstrbcions(List<GpDstrbcion> gpDstrbcions) {
		this.gpDstrbcions = gpDstrbcions;
	}

}